﻿using System;
using System.Runtime.Serialization;

namespace Mockery.Core
{
    /// <summary>
    /// This exception is thrown when an exception was caught but the client did not explicitly 
    /// look for the exception.
    /// </summary>
    [Serializable]
    public class UnexpectedException : Exception
    {
        public UnexpectedException(string message, Exception innerException) : base(message, innerException)
        {}

        public UnexpectedException(string message)
            : base(message)
        {}

        public UnexpectedException()
        {}

        protected UnexpectedException(SerializationInfo serializationInfo, StreamingContext streamingContext)
            : base(serializationInfo, streamingContext)
        {}
    }
}
